home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_query.asp < prev    next >
Encoding:
Text File  |  1999-07-29  |  18.3 KB  |  611 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
  2. <HTML>
  3. <HEAD>
  4.  
  5. <META HTTP-EQUIV="Content-Type" content="text/html; charset=Windows-1252">
  6.  
  7. <META NAME="ROBOTS" CONTENT="NOINDEX">
  8.  
  9. <%
  10. ' ********** INSTRUCTIONS FOR QUICK CUSTOMIZATION **********
  11. '
  12. ' This form is set up for easy customization. It allows you to modify the
  13. ' page logo, the page background, the page title and simple query
  14. ' parameters by modifying a few files and form variables. The procedures
  15. ' to do this are explained below.
  16. '
  17. '
  18. ' *** Modifying the Form Logo:
  19.  
  20. ' The logo for the form is named is2logo.gif. To change the page logo, simply
  21. ' name your logo is2logo.gif and place in the same directory as this form. If
  22. ' your logo is not a GIF file, or you don't want to copy it, change the following
  23. ' line so that the logo variable contains the URL to your logo.
  24.  
  25.         FormLogo = "is2logo.gif"
  26.  
  27. '
  28. ' *** Modifying the Form's background pattern.
  29.  
  30. ' You can use either a background pattern or a background color for your
  31. ' form. If you want to use a background pattern, store the file with the name
  32. ' is2bkgnd.gif in the same directory as this file and remove the remark character
  33. ' the single quote character) from the line below. Then put the remark character on
  34. ' the second line below.
  35. '
  36. ' If you want to use a different background color than white, simply edit the
  37. ' bgcolor line below, replacing white with your color choice.
  38.  
  39. '       FormBG = "background = " & chr(34) & "is2bkgnd.gif" & chr(34)
  40.         FormBG = "bgcolor = " & chr(34) & "#FFFFFF" & chr(34)
  41.  
  42.  
  43. ' *** Modifying the Form's Title Text.
  44.  
  45. ' The Form's title text is set on the following line.
  46. %>
  47.  
  48.     <TITLE>Search Results</TITLE>
  49.  
  50. <SCRIPT LANGUAGE="JavaScript">
  51. <!--
  52.     TempString = navigator.appVersion
  53.     if (navigator.appName == "Microsoft Internet Explorer"){    
  54. // Check to see if browser is Microsoft
  55.         if (TempString.indexOf ("4.") >= 0){
  56. // Check to see if it is IE 4
  57.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  58.         }
  59.         else {
  60.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  61.         }
  62.     }
  63.     else if (navigator.appName == "Netscape") {                        
  64. // Check to see if browser is Netscape
  65.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  66.     }
  67.     else
  68.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  69. //-->
  70. </script>
  71.  
  72. <%
  73. '
  74. ' *** Modifying the Form's Search Scope.
  75. '
  76. ' The form will search from the root of your web server's namespace and below
  77. ' (deep from "/" ). To search a subset of your server, for example, maybe just
  78. ' a PressReleases directory, modify the scope variable below to list the virtual path to
  79. ' search. The search will start at the directory you specify and include all sub-
  80. ' directories.
  81.  
  82.         FormScope = "/iishelp/iis"
  83.  
  84. '
  85. ' *** Modifying the Number of Returned Query Results.
  86. '
  87. ' You can set the number of query results returned on a single page
  88. ' using the variable below.
  89.  
  90.         PageSize = 10
  91.  
  92. '
  93. ' *** Setting the Locale.
  94. '
  95. ' The following line sets the locale used for queries. In most cases, this
  96. ' should match the locale of the server. You can set the locale below.
  97.  
  98.         SiteLocale = "EN-US"
  99.  
  100. ' ********** END QUICK CUSTOMIZATION SECTIONS ***********
  101. noise=",about,after,all,also,an,another,any,and,are,as,at,be,because,been,before,being,between,both,but,by,came,can,come,could,did,do,each,for,from,get,got,has,had,he,have,her,here,him,himself,his,how,if,in,into,is,it,like,make,many,me,might,more,most,much,must,my,never,near,now,of,on,only,or,other,our,out,over,said,same,see,should,since,some,still,such,take,than,that,the,their,them,then,there,these,they,this,those,through,to,too,under,up,very,was,way,we,well,were,what,where,which,while,who,with,would,you,your,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$,1,2,3,4,5,6,7,8,9,0,_,!,&,~,|,?,I,"
  102.  
  103. punc2="$,1234567890_!&~|? #+()"
  104. punc="$,1234567890_!&~|?#@%^+"
  105. %>
  106.  
  107. <%
  108. ' Set Initial Conditions
  109.     NewQuery = FALSE
  110.     UseSavedQuery = FALSE
  111.     SearchString = ""
  112.  
  113. ' Did the user press a SUBMIT button to execute the form? If so get the form variables.
  114.     if Request.ServerVariables("REQUEST_METHOD") = "POST" then
  115.         SearchString = Request.Form("SearchString")
  116.     SearchType=Request.QueryString("SearchType")
  117.     if SearchString<>"" then
  118.         Session("SearchStringDisplay")=SearchString
  119.     end if
  120.         FreeText = Request.Form("FreeText")
  121.     QueryForm = "Query.Asp"
  122.     CiResultsSize = Request.Form("CiResultsSize")
  123.      CiLimits = Request.Form("CiLimits")
  124.         ' NOTE: this will be true only if the button is actually pushed.
  125.         ' if Request.Form("Action") = "Search" then
  126.             NewQuery = TRUE
  127.         if CiLimits = "on" then
  128.             RankBase=50
  129.         else
  130.             RankBase=1000
  131.         end if
  132.         ' end if
  133.     end if
  134.     if Request.ServerVariables("REQUEST_METHOD") = "GET" then
  135.         SearchString = Request.QueryString("SearchString")
  136.     QueryForm = "Query.Asp"
  137.     CiResultsSize = Request.QueryString("CiResultsSize")
  138.                 FreeText = Request.QueryString("FreeText")
  139.                 FormScope = Request.QueryString("sc")
  140.                 RankBase = Request.QueryString("RankBase")
  141.         if Request.QueryString("pg") <> "" then
  142.             NextPageNumber = Request.QueryString("pg")
  143.             NewQuery = FALSE
  144.             UseSavedQuery = TRUE
  145.         else
  146.             NewQuery = SearchString <> ""
  147.         end if
  148.     end if
  149. %>
  150.  
  151. </HEAD>
  152.  
  153. <BODY <%=FormBG%>>
  154.  
  155. <%
  156.   if NewQuery then
  157.     set Session("Query") = nothing
  158.     set Session("Recordset") = nothing
  159.     NextRecordNumber = 1
  160.  
  161.     'Strip punctuation from search term
  162.     for x = 1 to len(SearchString)
  163.        testpunc= mid(SearchString,x,1)
  164.        if instr(punc,testpunc) then
  165.         SearchStringErr= SearchStringErr
  166.        else
  167.         SearchStringErr = SearchStringErr + testpunc
  168.        end if
  169.     next
  170.     SearchString = SearchStringErr
  171.  
  172.  
  173.   if SearchType=0 Then
  174.     'Strip noise words from search term
  175.     SearchStringComp=SearchString+" "
  176.     for x = 1 to len(SearchStringComp)
  177.     if mid(SearchStringComp,x,1)=" " Then
  178.         ncompare2 = ","+ncompare+","
  179.         if instr(noise,ncompare2) = 0 then
  180.             NewCompare=NewCompare+" "+ncompare
  181.         End If
  182.         ncompare=""
  183.     else
  184.         ncompare=ncompare+mid(SearchString,x,1)
  185.     end if
  186.     next        
  187.     x = len(NewCompare)
  188.     if left(NewCompare,1) = " " Then
  189.        NewCompare = right(NewCompare,(x-1))
  190.     end if
  191.     SearchString=NewCompare
  192.         CompSearch = "$CONTENTS " + SearchString
  193.   end if
  194.  
  195.   if SearchType=1 Then
  196.     CompSearch = chr(34) + SearchString + chr(34)
  197.   end if
  198.  
  199.   if SearchType=2 Then
  200.     'Strip noise words from search term
  201.     SearchStringComp=SearchString+" "
  202.     for x = 1 to len(SearchStringComp)
  203.     if mid(SearchStringComp,x,1)=" " Then
  204.         ncompare2 = ","+ncompare+","
  205.         if instr(noise,ncompare2) = 0 then
  206.             NewCompare=NewCompare+" "+ncompare
  207.         End If
  208.         ncompare=""
  209.     else
  210.         ncompare=ncompare+mid(SearchString,x,1)
  211.     end if
  212.     next        
  213.     x = len(NewCompare)
  214.     if left(NewCompare,1) = " " Then
  215.        NewCompare = right(NewCompare,(x-1))
  216.     end if
  217.     SearchString=NewCompare
  218.     slen=len(SearchString)
  219.     for k = 1 to slen
  220.     slet = Mid(SearchString,k,1)
  221.       if slet <> " " then
  222.             ss1=ss1+slet
  223.       else
  224.         ss1=ss1+ " AND "
  225.       end if
  226.     Next
  227.         CompSearch=ss1
  228.     If Right(CompSearch,5) = " AND " Then CompSearch = Left(CompSearch,Len(CompSearch)-5)
  229.   end if
  230.  
  231.  if SearchType=3 Then
  232.     'Strip noise words from search term
  233.     SearchStringComp=SearchString+" "
  234.     for x = 1 to len(SearchStringComp)
  235.     if mid(SearchStringComp,x,1)=" " Then
  236.         ncompare2 = ","+ncompare+","
  237.         if instr(noise,ncompare2) = 0 then
  238.             NewCompare=NewCompare+" "+ncompare
  239.         End If
  240.         ncompare=""
  241.     else
  242.         ncompare=ncompare+mid(SearchString,x,1)
  243.     end if
  244.     next        
  245.     x = len(NewCompare)
  246.     if left(NewCompare,1) = " " Then
  247.        NewCompare = right(NewCompare,(x-1))
  248.     end if
  249.     SearchString=NewCompare
  250.     slen=len(SearchString)
  251.     for k = 1 to slen
  252.     slet = Mid(SearchString,k,1)
  253.       if slet <> " " then
  254.             ss1=ss1+slet
  255.       else
  256.         ss1=ss1+ " OR "
  257.       end if
  258.     Next
  259.         CompSearch=ss1
  260.     If Right(CompSearch,4) = " OR " Then CompSearch = Left(CompSearch,Len(CompSearch)-4)
  261.   end if
  262.  
  263.   if SearchType=4 Then
  264.     'Strip noise words from search term
  265.     NCompare=""
  266.     NewCompare=""
  267.     SearchStringComp=SearchString+" "
  268.     for x = 1 to len(SearchStringComp)
  269.     if mid(SearchStringComp,x,1)=" " Then
  270.         ncompare2 = ","+ncompare+","
  271.         if instr(noise,ncompare2) = 0 then
  272.             NewCompare=NewCompare+" "+ncompare
  273.         End If
  274.         ncompare=""
  275.     else
  276.         ncompare=ncompare+mid(SearchString,x,1)
  277.     end if
  278.     next        
  279.     x = len(NewCompare)
  280.     if left(NewCompare,1) = " " Then
  281.        NewCompare = right(NewCompare,(x-1))
  282.     end if
  283.     SearchString=NewCompare
  284.     CompSearch = SearchString
  285.   end if
  286.  
  287.  
  288.     set Q = Server.CreateObject("ixsso.Query")
  289.         set util = Server.CreateObject("ixsso.Util")
  290.  
  291.     Q.Query = CompSearch
  292.     Q.Catalog = "Web" 
  293.     Q.SortBy = "rank[d]"
  294.     Q.Columns = "DocTitle, vpath, filename, size, write, characterization, rank"
  295.     Q.MaxRecords = RankBase 
  296.  
  297.         if FormScope <> "/" then
  298.                 util.AddScopeToQuery Q, FormScope, "deep"
  299.         end if
  300.  
  301.         if SiteLocale<>"" then
  302.                 Q.LocaleID = util.ISOToLocaleID(SiteLocale)
  303.         end if
  304.     On Error Resume Next
  305.     set RS = Q.CreateRecordSet("nonsequential")
  306.  
  307.     RS.PageSize = PageSize
  308.     Test = RS.PageSize
  309.     ActiveQuery = TRUE
  310.  
  311.  
  312.  
  313.   elseif UseSavedQuery then
  314.     if IsObject( Session("Query") ) And IsObject( Session("RecordSet") ) then
  315.       set Q = Session("Query")
  316.       set RS = Session("RecordSet")
  317.  
  318.  
  319.       if RS.RecordCount <> -1 and NextPageNumber <> -1 then
  320.         RS.AbsolutePage = NextPageNumber
  321.         NextRecordNumber = RS.AbsolutePosition
  322.       end if
  323.  
  324.       ActiveQuery = TRUE
  325.     else
  326.       Response.Write "ERROR - No saved query"
  327.     end if
  328.   end if
  329.  
  330.  
  331. If Err<>424 Then
  332.  
  333.   if ActiveQuery then
  334.     if not RS.EOF then
  335.  %>
  336.  
  337. <p>
  338. <HR WIDTH=80% ALIGN=center SIZE=3>
  339. <%LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
  340. KLastRecordOnPage=LastRecordOnPage
  341. If KLastRecordOnPage>RS.RecordCount Then KLastRecordOnPage=RS.RecordCount%>
  342.  
  343.  
  344. <b>You searched for <%=Session("SearchStringDisplay")%></b><br><br>
  345. <b><i><font size="3"><%=NextRecordNumber%> - <%=KLastRecordOnPage%> of <%=RS.RecordCount%> results found</b></i></font><br>
  346. <p>
  347.  
  348. <%
  349.         LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
  350.         CurrentPage = RS.AbsolutePage
  351.         if RS.RecordCount <> -1 AND RS.RecordCount < LastRecordOnPage then
  352.             LastRecordOnPage = RS.RecordCount
  353.         end if
  354.  
  355.  %>
  356.  
  357. <%
  358.  
  359. %>
  360.  
  361. <% if Not RS.EOF and NextRecordNumber <= LastRecordOnPage then%>
  362.         <table border=0>
  363. <% end if %>
  364.  
  365. <%
  366.  
  367. Do While Not RS.EOF and NextRecordNumber <= LastRecordOnPage
  368.  
  369.         ' This is the detail portion for Title, Description, URL, Size, and
  370.     ' Modification Date.
  371.  
  372.  
  373.  
  374. TmpExt = Server.HTMLEncode( RS("filename") )
  375. FullExt = Right(TmpExt, 3)
  376.  
  377. If FullExt <> "cnt" and FullExt <> "hhc" and FullExt <> "hpj" and FullExt <> "hlp" and FullExt <> "rtf" and FullExt <> "asf" and FullExt <> "gid" and FullExt <> "fts" and FullExt <> "wmp" and FullExt <> "hhk" and FullExt <> "txt" and FullExt <> "ass" and FullExt <> "idq" and FullExt <> "ncr" and FullExt <> "ncl" and FullExt <> "url" and FullExt <> "css" and FullExt <> "prp" and FullExt <> "htx" and FullExt <> "htw" and FullExt <> "tmp" and FullExt <> "mdb" and FullExt <> "xls" and FullExt <> "chm" Then
  378.  
  379.  
  380.  
  381.  
  382.  
  383.     ' If there is a title, display it, otherwise display the filename.
  384. %>
  385.     <p>
  386.     <tr class="RecordTitle">
  387.                                     
  388.         
  389.         
  390.                 <td><b><%=NextRecordNumber%>.</b></td>
  391.         <b class="RecordTitle"> <td><b>
  392.             <%if VarType(RS("DocTitle")) = 1 or RS("DocTitle") = "" then%>
  393.                 <a href="<%=RS("vpath")%>" class="RecordTitle"><%= Server.HTMLEncode( RS("filename") )%></a>
  394.             <%else%>
  395.                 <a href="<%=RS("vpath")%>" class="RecordTitle"><%= Server.HTMLEncode(RS("DocTitle"))%></a>
  396.             <%end if%>
  397.         </b></b><br>
  398.         
  399.             <%if VarType(RS("characterization")) = 8 and RS("characterization") <> "" then%>
  400.                 <%= RS("characterization")%>
  401.         
  402.         <%end if%>
  403.         <%if CiResultsSize = "on" then%>
  404.                 <%end if%>
  405.         </td>
  406.     </tr>
  407.     <tr>
  408.     </tr>
  409.  
  410.  
  411.  
  412. <%
  413. else
  414.    NextRecordNumber = NextRecordNumber-1
  415. end if%>
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422. <%
  423.           RS.MoveNext
  424.           NextRecordNumber = NextRecordNumber+1
  425.       Loop
  426.  %>
  427.  
  428. </table>
  429.  
  430. <P><BR>
  431.  
  432. <%
  433.   else   ' NOT RS.EOF
  434.       if NextRecordNumber <> 1 then
  435.           Response.Write "No more documents in the query.<P>"
  436.       end if
  437.  
  438.   end if ' NOT RS.EOF%>
  439.  
  440. <%
  441.   if Q.QueryIncomplete then
  442. '    If the query was not executed because it needed to enumerate to
  443. '    resolve the query instead of using the index, but AllowEnumeration
  444. '    was FALSE, let the user know %>
  445.  
  446.     <P>
  447.     <I><B>The query could not be completed. Please resubmit the query.<BR> Technical details: AllowEnumeration must be set to TRUE to complete this query.</B></I><BR>
  448. <%end if
  449.  
  450.  
  451.   if Q.QueryTimedOut then
  452. '    If the query took too long to execute (for example, if too much work
  453. '    was required to resolve the query), let the user know %>
  454.     <P>
  455.     <I><B>The query took too long to complete.</B></I><BR>
  456. <%end if%>
  457.  
  458.  
  459. <TABLE>
  460.  
  461. <%
  462. '    This is the "previous" button.
  463. '    This retrieves the previous page of documents for the query.
  464. %>
  465.  
  466. <%SaveQuery = FALSE%>
  467. <%if CurrentPage > 1 and RS.RecordCount <> -1 then %>
  468.     <td align=left>
  469.         <form action="<%=QueryForm%>" method="get">
  470.             <INPUT TYPE="HIDDEN" NAME="SearchString" VALUE="<%=SearchString%>">
  471.                         <INPUT TYPE="HIDDEN" NAME="FreeText" VALUE="<%=FreeText%>">
  472.         <INPUT TYPE="HIDDEN" NAME="CiResultsSize" VALUE="<%=CiResultsSize%>">
  473.             <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
  474.             <INPUT TYPE="HIDDEN" name="pg" VALUE="<%=CurrentPage-1%>" >
  475.             <INPUT TYPE="HIDDEN" NAME = "RankBase" VALUE="<%=RankBase%>">
  476.             <input type="submit" value="<< Back">
  477.         </form>
  478.     </td>
  479.         <%SaveQuery = TRUE%>
  480. <%end if%>
  481.  
  482.  
  483. <%
  484. '    This is the "next" button for unsorted queries.
  485. '    This retrieves the next page of documents for the query.
  486.  
  487.   if Not RS.EOF then%>
  488.     <td align=right>
  489.         <form action="<%=QueryForm%>" method="get">
  490.             <INPUT TYPE="HIDDEN" NAME="SearchString" VALUE="<%=SearchString%>">
  491.                         <INPUT TYPE="HIDDEN" NAME="FreeText" VALUE="<%=FreeText%>">
  492.         <INPUT TYPE="HIDDEN" NAME="CiResultsSize" VALUE="<%=CiResultsSize%>">
  493.             <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
  494.             <INPUT TYPE="HIDDEN" name="pg" VALUE="<%=CurrentPage+1%>" >
  495.             <INPUT TYPE="HIDDEN" NAME = "RankBase" VALUE="<%=RankBase%>">
  496.  
  497.                 <% NextString = "More >>"%>
  498.             <input type="submit" value="<%=NextString%>">
  499.         </form>
  500.     </td>
  501.     <%SaveQuery = TRUE%>
  502. <%end if%>
  503.  
  504. </TABLE>
  505.  
  506. <% ' Display the page number %>
  507.  <%if RS.RecordCount = 0 then%>
  508.         No documents matched the query <%=SearchString%>.<br><br>
  509.  
  510.     You might want to:
  511.     <UL><LI>Let us know about this <a href="mailto:iisdocs@microsoft.com?subject=<%=SearchString%>-search%20term%20not%20matched&body=The%20term%20'<%=SearchString%>'%20produced%20no%20matches.">(mailto:iisdocs@microsoft.com)</a> so that we can improve Search in future releases.
  512.     <LI>Check the Index for related terms.
  513.     <LI>Double-check your spelling and syntax.
  514.     <LI>Try a different Search option (Standard, Exact Phrase, Any Words, All Words, and Boolean options are available).
  515.     <LI>Try your query again later. If you've just started Indexing Service, it may take a few minutes to catalog the IIS documentation.
  516.     </UL>
  517.     <%else%>
  518.  
  519. Page <%=CurrentPage%>
  520. <%if RS.PageCount <> -1 then
  521.      Response.Write " of " & RS.PageCount
  522.   end if %>
  523. <%end if%>
  524.  
  525. <%
  526.     ' If either of the previous or back buttons were displayed, save the query
  527.     ' and the recordset in session variables.
  528.     if SaveQuery then
  529.         set Session("Query") = Q
  530.         set Session("RecordSet") = RS
  531.     else
  532.         RS.close
  533.         Set RS = Nothing
  534.         Set Q = Nothing
  535.         set Session("Query") = Nothing
  536.         set Session("RecordSet") = Nothing
  537.     end if
  538.  %>
  539. <% end if %>
  540.  
  541.  
  542. </BODY>
  543. </HTML>
  544. <%else%>
  545. <%
  546.  
  547.  
  548.     'Strip noise words from search term
  549.     NCompare=""
  550.     NewCompare=""
  551.     SearchStringComp=SearchString+" "
  552.     for x = 1 to len(SearchStringComp)
  553.     if mid(SearchStringComp,x,1)=" " Then
  554.         ncompare2 = ","+ncompare+","
  555.         if instr(noise,ncompare2) = 0 then
  556.             NewCompare=NewCompare+" "+ncompare
  557.         End If
  558.         ncompare=""
  559.     else
  560.         ncompare=ncompare+mid(SearchString,x,1)
  561.     end if
  562.     next        
  563.     x = len(NewCompare)
  564.     if left(NewCompare,1) = " " Then
  565.        NewCompare = right(NewCompare,(x-1))
  566.     end if
  567.     SearchString=NewCompare
  568.  
  569.     'Strip punctuation from search term
  570.     SearchStringErr = ""
  571.     for x = 1 to len(SearchString)
  572.        testpunc= mid(SearchString,x,1)
  573.        if instr(punc2,testpunc) then
  574.         SearchStringErr= SearchStringErr
  575.        else
  576.         SearchStringErr = SearchStringErr + testpunc
  577.        end if
  578.     next
  579.     SearchString = SearchStringErr
  580.     CompSearch=SearchString
  581.  
  582. %>
  583.  
  584.  
  585. <%if SearchString = "" or instr(SearchString,"*") or instr(CompSearch,")") or instr(CompSearch,"(") or right(CompSearch,3)="OR " or right(CompSearch,4)="AND " then%>
  586. <b>Indexing Services was unable to process your query.<p></b><br>
  587.  
  588. Please rephrase the query and try again. Some common words (such as "get," "for," and "many") are not indexed. Also, do not use punctuation marks (commas, periods, and so on) in your query.
  589.  
  590. <%else%>
  591.  
  592. Indexing Service not started<p>
  593. *<%=CompSearch%>*
  594. <br>
  595.  
  596.  
  597. In order to perform search queries on the IIS documentation, you must first start Indexing Service.<br>
  598.  <p>
  599. To start Indexing Service,
  600. <ol>
  601. <li>On the computer running IIS, right-click the <b>My Computer</b> icon and click <b>Manage</b>.<p>
  602. <li>Expand the <b>Services and Applications</b> node in the MMC.<p>
  603. <li>Select <b>Indexing Service</b>.</p>
  604. <li>Click the <b>Action</b> menu and then click <b>Start</b>.<p>
  605. </ol> <p>
  606. Note: It may take Indexing Service a few minutes to catalog the IIS documentation.<p>
  607. In order to use Search while viewing the documentation remotely, Indexing Service must be running on the computer that is serving the documentation. If you are unable to start Indexing Service, please contact the Web site administrator.
  608. <%end if%>
  609. <% end if %>
  610.  
  611.